{extend name="public/base" /}

{block name="title"}<title>邀请见证</title>{/block}

{block name="pjax_container"}
<section class="content-header">
    <h1>邀请见证</h1>
    <ol class="breadcrumb">
        <li class="active"><i class="fa fa-dashboard"></i> 邀请见证</li>
    </ol>
</section>
<section class="content">
    <div class="row">
        <div class="col-md-12">
            <div class="box box-primary">
                <div class="box-header with-border">
                    <div class="" style="top:10px;">
                        <form action="{:search_url(['status','s_time','e_time','search'])}" method="GET" pjax-search="">
                            <div class="input-group input-group-sm">
                                <div style="float:right;">
                                    <select class="select2" name="status" style="width: 100px;display: inline-block;margin: 0px 5px;padding-left: 3px;border: 1px solid #ccc;height: 28px;border-radius: 3px;">
                                        <option value="">见证状态</option>
                                        {foreach name="\app\admin\model\Witness::$witness_status" item="vo" key="ko"}
                                        <option value="{$ko}"{if condition="isset($_GET['status']) && is_numeric($_GET['status']) && $_GET['status']==$ko"}selected="selected"{/if}>{$vo}</option>
                                        {/foreach}
                                    </select>
                                    <select class="select2" name="examine" style="width: 100px;display: inline-block;margin: 0px 5px;padding-left: 3px;border: 1px solid #ccc;height: 28px;border-radius: 3px;">
                                        <option value="">审核状态</option>
                                        {foreach name="\app\admin\model\Witness::$witness_examine" item="vo" key="ko"}
                                        <option value="{$ko}"{if condition="isset($_GET['examine']) && is_numeric($_GET['examine']) && $_GET['examine']==$ko"}selected="selected"{/if}>{$vo}</option>
                                        {/foreach}
                                    </select>
                                    <input type="text" style="display: inline-block;width: 200px;margin: 0px 5px;padding-left: 3px;border: 1px solid #ccc;height: 28px;border-radius: 3px;" name="search" class="" value="{:input('get.search')}" placeholder="搜索昵称或手机" />
                                    <div class="input-group-btn" style="display: inline-block;">
                                        <button type="submit" class="btn btn-default sreachs">
                                            <i class="fa fa-search"></i>查询
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
                <div class="box-body table-responsive">
                    <table class="table table-bordered table-hover">
                        <tr>
                            <th>ID</th>
                            <th>用户昵称</th>
                            <th>手机号码</th>
                            <th>见证说明</th>
                            <th>完成见证</th>
                            <th>发布时间</th>
                            <th>审核状态</th>
                            <th>操作</th>
                        </tr>
                        {volist name="data" id="v"}
                        <tr>
                            <td>{$v["id"]}</td>
                            <td>
                                <a href="{:url('client_user/edit', ['id'=>$v.user_id])}" target="_blank">{$v.nickname}</a>
                            </td>
                            <td>{$v.mobile}</td>
                            <td>{$v.DescStr}</td>
                            <td>{$v.StatusStr}</td>
                            <td>{$v.create_time}</td>
                            <td>{$v.ExamineStr}</td>
                            <td>
                                {:authAction(CONTROLLER_NAME.'/user_witness_edit','edit',['id'=>$v['id']])}
                                <!--{:authAction(CONTROLLER_NAME.'/user_witness_del','delete_one',['id'=>$v['id']])}-->
                            </td>
                        </tr>
                        {/volist}
                    </table>
                </div>
                <div class="box-footer clearfix">
                    {$data->render()}
                </div>
            </div>
        </div>
    </div>
</section>
{/block}
